<!--测试指令-->

<div class="demo-modal editAdmin">
	<div class="modal-header">
		<h4 class="modal-title" id="modal-title">
			编辑管理员
			<i class="icon icon-guanbi2" ng-click="cancel()"></i>
		</h4>
	</div>
	<div class="modal-body addAdmin" id="modal-body">
		<div class="addItem">
			<div class="addItem-head">
				<span>*</span>
				选择所属管理组
			</div>
			<div class="line-block filed">
		        <ui-select ng-model="editAdmin.roleId" append-to-body = "true">
		            <ui-option  ng-repeat="i in guanLiZuList" value="i.id">{{i.roleName}}</ui-option>
		        </ui-select>
		    </div>
		</div>
		<div class="addItem">
			<div class="addItem-head">
				<!--<span>*</span>-->
				用户名
			</div>
			<div class="addItem-content">
				<input type="text" readonly="" class="form-control" ng-model="editAdmin.username"/>
			</div>
		</div>
		<div class="addItem">
			<div class="addItem-head" >
				<!--<span>*</span>-->
				真实姓名
			</div>
			<div class="addItem-content" > 
				<input type="text" class="form-control" ng-class="{'error':realName}" 
					ng-model="editAdmin.realName"/>
			</div>
		</div>
		<div class="addItem">
			<div class="addItem-head">
				<span>*</span>
				手机号码
			</div>
			<div class="addItem-content">
				<input type="text" class="form-control" ng-class="{'error':telephone}" 
					ng-model="editAdmin.telephone"/>
			</div>
		</div>
		<div class="addItem">
			<div class="addItem-head">
				<!--<span>*</span>-->
				邮箱地址
			</div>
			<div class="addItem-content">
				<input type="text" class="form-control" ng-class="{'error':mail}" 
					ng-model="editAdmin.mail"/>
			</div>
		</div>
	</div>
	<div class="modal-footer">
		<button class="btn btn-primary" type="button" ng-click="tiJiao1()">确定提交</button>
		<!--<button class="btn btn-warning" type="button" ng-click="cancel()">取消</button>-->
	</div>
</div>